﻿using LandManager.Web.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace LandManager.Web
{
    public class AdminFilter:ActionFilterAttribute
    {
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            var currObj = filterContext.HttpContext.Session == null ? null : filterContext.HttpContext.Session["_UserInfo"] as UserInfo;

            //if (currObj == null || !currObj.IsAdmin)
            //    return;

            base.OnActionExecuting(filterContext);
        }
    }
}